package cn.chinaflame.pagodas.repository;

import cn.chinaflame.pagodas.entity.Boy;
import cn.chinaflame.pagodas.entity.PaBadLights;

import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * 继承springdataJpa
 *
 * @author admin
 */
public interface PaBadLightsRepository extends JpaRepository<PaBadLights, Integer> {
   
	/**
	 * 通过日期查询
	 * @param date
	 * @return
	 */
    public List<PaBadLights> findByCreatetime(String date);
    
    /**
     * 通过灯号查询
     * @param lightno
     * @return
     */
    public List<PaBadLights> findByLightno(String lightno);
    
    /**
     * 通过消息查询
     * @param msg
     * @return
     */
    public List<PaBadLights> findByMessage(String msg);
}
